package com.petlab.dao.impl;

import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.petlab.dao.CommentDao;
import com.petlab.model.Comment;

@Component("commentDao")
public class CommentDaoImpl implements CommentDao{
	
	
	private HibernateTemplate hibernateTemplate;

	public HibernateTemplate getHibernateTemplate() {
		return hibernateTemplate;
	}

	@Resource
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	
	public void forumSave(Comment comment) {
		// TODO Auto-generated method stub
		hibernateTemplate.save(comment);
	}

}
